﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;

namespace ConsoleApp3
{
    class SecondComparable : IComparable<SecondComparable>
    {
        public int weight { get; set; }
        public int CompareTo( SecondComparable other)
        {
            if (this.weight > other.weight)
            {
                return 1;
            }
            else if (this.weight == other.weight)
            {
                return 0;
            }
            else 
            {
                return -1;
            }
        }
    }
}
